﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using Omu.AwesomeWebForms;
using Omu.AwesomeWebFormsDemo.svc;

namespace Omu.AwesomeWebFormsDemo
{
    public partial class ListBinding : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            rep1.DataSource = Aja.Categories;
            rep1.DataBind();
        }



        protected void rep1d(object sender, RepeaterItemEventArgs e)
        {
            var lkCategory = e.Item.FindControl("lkCategory") as AjaxDropdown;
            var txt = e.Item.FindControl("txt") as TextBox;
            if (txt != null) if (lkCategory != null) txt.Text = lkCategory.ClientID;
        }
    }
}
